from aip import AipContentCensor

def tupian(b):
    """ 你的 APPID AK SK """
    APP_ID = '46798679'
    API_KEY = 'aRAa8vaP68XiWbzSjByGPwXw'
    SECRET_KEY = 'TW3GUeyWuKY6bTwz0qtkQVj12rAaSOZ3'

    client = AipContentCensor(APP_ID, API_KEY, SECRET_KEY)
    result = client.imageCensorUserDefined(b)
    return result